package br.com.softclinica.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.border.MatteBorder;
import java.awt.Color;
import java.awt.Font;

public class TConta extends JFrame {

	private JPanel contentPane;
	private JTextField txtCodigo;
	private JTextField txtNome;
	private JTextField txtSaldo;
	private JTextField txtLimite;
	private JLabel lblValor;
	private JTextField txtValor;
	private JLabel lblTipo;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TConta frame = new TConta();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TConta() {
		setResizable(false);
		setTitle("Conta");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblCodigo = new JLabel("C\u00F3digo:");
		lblCodigo.setHorizontalAlignment(SwingConstants.RIGHT);
		lblCodigo.setBounds(10, 10, 43, 16);
		contentPane.add(lblCodigo);
		
		txtCodigo = new JTextField();
		txtCodigo.setBounds(63, 4, 55, 28);
		contentPane.add(txtCodigo);
		txtCodigo.setColumns(10);
		
		JLabel lblNome = new JLabel("Nome:");
		lblNome.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNome.setBounds(130, 10, 43, 16);
		contentPane.add(lblNome);
		
		txtNome = new JTextField();
		txtNome.setBounds(185, 4, 253, 28);
		contentPane.add(txtNome);
		txtNome.setColumns(10);
		
		JPanel panel = new JPanel();
		panel.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel.setBounds(10, 38, 428, 108);
		contentPane.add(panel);
		panel.setLayout(null);
		
		txtLimite = new JTextField();
		txtLimite.setEditable(false);
		txtLimite.setBounds(71, 74, 96, 28);
		panel.add(txtLimite);
		txtLimite.setColumns(10);
		
		JLabel lblHora = new JLabel("Limite:");
		lblHora.setBounds(6, 80, 55, 16);
		panel.add(lblHora);
		lblHora.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JLabel lblSaldo = new JLabel("Saldo:");
		lblSaldo.setBounds(6, 48, 55, 16);
		panel.add(lblSaldo);
		lblSaldo.setHorizontalAlignment(SwingConstants.RIGHT);
		
		txtSaldo = new JTextField();
		txtSaldo.setEditable(false);
		txtSaldo.setBounds(71, 42, 96, 28);
		panel.add(txtSaldo);
		txtSaldo.setColumns(10);
		
		JLabel lblInformaesDaConta = new JLabel("Informa\u00E7\u00F5es da conta");
		lblInformaesDaConta.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblInformaesDaConta.setBounds(6, 6, 200, 16);
		panel.add(lblInformaesDaConta);
		
		JButton btnExtratoConta = new JButton("Extrato conta");
		btnExtratoConta.setBounds(312, 74, 110, 28);
		panel.add(btnExtratoConta);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new MatteBorder(1, 1, 1, 1, (Color) new Color(0, 0, 0)));
		panel_1.setBounds(10, 158, 428, 108);
		contentPane.add(panel_1);
		panel_1.setLayout(null);
		
		txtValor = new JTextField();
		txtValor.setBounds(59, 74, 96, 28);
		panel_1.add(txtValor);
		txtValor.setColumns(10);
		
		lblTipo = new JLabel("Tipo:");
		lblTipo.setBounds(6, 47, 43, 16);
		panel_1.add(lblTipo);
		lblTipo.setHorizontalAlignment(SwingConstants.RIGHT);
		
		lblValor = new JLabel("Valor:");
		lblValor.setBounds(6, 80, 43, 16);
		panel_1.add(lblValor);
		lblValor.setHorizontalAlignment(SwingConstants.RIGHT);
		
		JComboBox comboBoxTipo = new JComboBox();
		comboBoxTipo.setBounds(59, 42, 91, 26);
		panel_1.add(comboBoxTipo);
		comboBoxTipo.setModel(new DefaultComboBoxModel(new String[] {"CREDITO", "DEBITO"}));
		comboBoxTipo.setToolTipText("");
		
		JButton btnSalvar = new JButton("Salvar");
		btnSalvar.setBounds(230, 74, 90, 28);
		panel_1.add(btnSalvar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setBounds(332, 74, 90, 28);
		panel_1.add(btnCancelar);
		
		JLabel lblInformaesDePagamento = new JLabel("Informa\u00E7\u00F5es de credito");
		lblInformaesDePagamento.setFont(new Font("SansSerif", Font.BOLD, 14));
		lblInformaesDePagamento.setBounds(6, 6, 200, 16);
		panel_1.add(lblInformaesDePagamento);
	}
}
